package MAgentAssignment;

import MAgentAssignment.ontology.FlightOntology;
import jade.content.lang.Codec;
import jade.content.lang.sl.SLCodec;
import jade.content.onto.Ontology;
import jade.core.Agent;

/**
 * Created by IntelliJ IDEA.
 * User: prageeth
 * Date: 2/16/12
 * Time: 2:26 PM
 * To change this template use File | Settings | File Templates.
 */
public class PlatFormAgent extends Agent
{
    private Codec codec = new SLCodec();
    private Ontology ontology = FlightOntology.getInstance();

    @Override protected void setup()
    {

        getContentManager().registerLanguage( codec );
        getContentManager().registerOntology( ontology );
        // flight agent has to talk to platform agent before landing
        // when parking is available for a flight to land, it checks for landing platform.
        // airport agent has to allocate a platform agent to the flight
        // and the flight agent will not land until he has the permission from flight agent and the parking agent
    }
}
